<link rel="stylesheet" type="text/css" href="__STATIC__/pc/css/head.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/pc/css/page.css">
<script src="__STATIC__/admin/js/jquery.js"></script>
<script src="__STATIC__/layer/css/layer.css"></script>
<script src="__STATIC__/layer/layer.js"></script>
<script src="__STATIC__/admin/js/jquery.mCustomScrollbar.concat.min.js"></script>
<style>
    a{text-decoration: none}
    .login a{color:white;}
    /* .navlist a.index{background: #06C4ED;} */
</style>
<style type="text/css">
    .page{
        display:flex;
        -webkit-display:flex;
        justify-content: center;
        font-size: 21px;
        color: #7B7B7B;
    }
    .pagelist{
        width: 36px;
        height: 36px;
        border:1px solid #7B7B7B;
        text-align: center;
        line-height: 36px;
        overflow: hidden;
        margin-left: 6px;
    }
    .select1{
        color: #fff;
        background: #FF8610;
        border:1px solid #FF8610;
    }
	.navlist {
    display: flex;
    -webkit-display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    margin-top: 20px;
    color: #B3F2FF;
}
	
</style>
<div style="background-color: #0874a7;">
    <div class="navmiddle">
        <div class="login">
            <div>
                <if condition="session('info_user') == ''">
                <span style="margin-right: 5px"><a href="{:url('Login/login',array('is_register'=>0))}">[登录]</a></span>|<span style="margin-left: 5px;"><a
                    href="{:url('Login/login',array('is_register'=>1))}">[注册]</a></span>
                <else />
                    <span style="margin-right: 5px"><a href="{:url('Center/index')}">[个人中心]</a></span>|<span style="margin-right: 5px"><a class="login_out" onclick="login_out()" href="javascript:void(0)">[登出]</a></span>
                </if>
            </div>
        </div>
        <div class="navlist">
            <image src="__STATIC__/uploads/{$web_set_result['logo']}" height="90" width="120"></image>
            <a class="<if condition="$controller eq 'Index'">index</if>" href="{:url('Index/index')}" style="color: #B3F2FF;text-decoration: none;"><div>首页</div></a>
        <!--  <a href="{:url('Index/search')}" style="color: white;text-decoration: none;"><div>项目查询</div></a> -->
            <a class="<if condition="$controller eq 'Company'">index</if>"  href="{:url('Company/index')}" style="color: #B3F2FF;text-decoration: none;"><div>企业查询</div></a>
            <a class="<if condition="$controller eq 'Dynamic'">index</if>"  href="{:url('Dynamic/index')}" style="color: #B3F2FF;text-decoration: none;"><div>高企专栏</div></a>
            <a class="<if condition="$controller eq 'Publicity'">index</if>" href="{:url('Publicity/index')}" style="color: #B3F2FF;text-decoration: none;"><div>公示公告</div></a>
            <a class="<if condition="$controller eq 'Notice'">index</if>" href="{:url('Notice/notice_list')}" style="color: #B3F2FF;text-decoration: none;"><div>通知公告</div></a>
            <a class="<if condition="$controller eq 'Policy'">index</if>" href="{:url('Policy/index')}" style="color: #B3F2FF;text-decoration: none;"><div>政策文件</div></a>
            <a class="<if condition="$controller eq 'Set'">index</if>" href="{:url('Set/about_us')}" style="color: #B3F2FF;text-decoration: none;"><div>关于我们</div></a>
            <a class="<if condition="$controller eq 'Mechanism'">index</if>" href="{:url('Mechanism/index')}" style="color: #B3F2FF;text-decoration: none;"><div>入驻平台</div></a>
        </div>
    </div>
</div>
<script>
    function login_out(){
        $.ajax({
            url:"{:url('Login/login_out')}",
            type:'POST',
            async:false,
            processData:false,
            contentType:false,
            success:function(result){
                if(result.code == 0){
                    layer.alert(result.msg);
                }else{
                    layer.alert(result.msg, {
                                btn: ['确定']
                            },
                            function (index, item) {
                                location.href = result.url;
                            });
                }
            }

        });
    }
</script>